package com.yfp.client.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 抽奖-用户参与记录表
 * @TableName lottery_records_client_records
 */
@TableName(value ="lottery_records_client_records")
@Data
public class LotteryRecordsClientRecords implements Serializable {
    /**
     * 主键
     */
    @TableId
    private Long id;

    /**
     * lottery_records表id
     */
    @Schema(description = "lottery_records表id")
    private Long lotteryRecordsId;

    /**
     * lottery_records_win表id
     */
    @Schema(description = "lottery_records_win表id")
    private Long lotteryRecordsWinId;

    /**
     * 客户id
     */
    @Schema(description = "客户id")
    private String clientId;

    /**
     * 兑换奖品类型:[1优惠券、2礼包、3实体商品]
     */
    @Schema(description = "兑换奖品类型:[1优惠券、2礼包、3实体商品]")
    private Integer rewardType;

    /**
     * 奖品id
     */
    @Schema(description = "奖品id")
    private Long rewardId;

    /**
     * 是否中奖[0未中奖、1已中奖]
     */
    @Schema(description = "是否中奖[0未中奖、1已中奖]")
    private Integer rewardFlag;

    /**
     * 领取状态:[0失败、1成功、2未核销]
     */
    @Schema(description = "领取状态:[0失败、1成功、2未核销]")
    private Integer receiveState;

    /**
     * 领取时间
     */
    @Schema(description = "领取时间")
    private Date receiveTime;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 客户优惠券表id
     */
    @Schema(description = "客户优惠券表id")
    private String clientCouponId;

    /**
     * 参与点位
     */
    @Schema(description = "参与点位")
    private String positionId;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private Integer clientNum;

}